import { RouteConfig } from 'vue-router'

const routes:Array<RouteConfig> = [
  {
    path: '',
    name: 'home',
    component: () => import(/* webpackChunkName:'home' */'@/views/home/index.vue'),
    children: [
      {
        path: 'role',
        name: 'role',
        component: () => import(/* webpackChunkName:'role' */'@/views/role/index.vue'),
        meta: {
          breadName: '角色列表'
        }
      },
      {
        path: 'menu',
        name: 'menu',
        component: () => import(/* webpackChunkName:'menu' */'@/views/menu/index.vue'),
        meta: {
          breadName: '菜单列表'
        }
      },
      {
        path: 'resource',
        name: 'resource',
        component: () => import(/* webpackChunkName:'resource' */'@/views/resource/index.vue'),
        meta: {
          breadName: '资源列表'
        }

      },
      {
        path: 'course',
        name: 'course',
        component: () => import(/* webpackChunkName:'course' */'@/views/course/index.vue'),
        meta: {
          breadName: '课程管理'
        }
      },
      {
        path: 'user',
        name: 'user',
        component: () => import(/* webpackChunkName:'user' */'@/views/user/index.vue'),
        meta: {
          breadName: '用户管理'
        }
      },
      {
        path: 'advert',
        name: 'advert',
        component: () => import(/* webpackChunkName:'advert' */'@/views/advert/index.vue'),
        meta: {
          breadName: '广告管理'
        }
      },
      {
        path: 'advert-space',
        name: 'advert-space',
        component: () => import(/* webpackChunkName:'advert-space' */'@/views/advert-space/index.vue'),
        meta: {
          breadName: '广告位管理'
        }
      }

      // {
      //   path: '',
      //   alias: '/tab1',
      //   name: 'tab1',
      //   component: () => import(/* webpackChunkName:'tab1' */'@/views/home/tabpage/tab1.vue')
      // },
      // {
      //   path: 'tab2',
      //   name: 'tab2',
      //   meta: {
      //     keepAlive: true
      //   },
      //   component: () => import(/* webpackChunkName:'tab2' */'@/views/home/tabpage/tab2.vue')
      // },
      // {
      //   path: 'tab3',
      //   name: 'tab3',
      //   component: () => import(/* webpackChunkName:'tab3' */'@/views/home/tabpage/tab3.vue')
      // }
    ]
  }
]

export default routes
